package com.imooc.sell.enums;

import lombok.Getter;

@Getter
public enum ResultEnum {

    PRODUCT_NOT_EXIST(10, "商品不存在"),
    PRODUCT_STOCK_ERROR(20, "库存不足"),
    ORDER_NOT_EXIST(30, "订单不存在"),
    ORDER_DETAILS_NOT_EXIST(40, "订单详情不存在"),
    ORDER_STATUS_ERRROR(50, "订单状态异常"),
    ORDER_UPDATE_FAIL(60, "订单更新失败"),
    ORDER_DETAILS_EMPTY(70, "订单中无商品"),
    ORDER_PAY_STATUS_ERROR(80, "订单支付状态错误"),;


    private Integer code;

    private String message;

    ResultEnum(Integer code, String message) {
        this.code = code;
        this.message = message;
    }
}
